Animation system

Animation system allows you to animate properties over time, control playback, map property value changes to animation.

The Kanzi animation system consists:

How the property timeline animations work

Property timeline uses the Kanzi property manager modifier stack. Kanzi applies the animation to the base value of the property, or the previous modifier in the stack (which can be another animation). That way you can stack animations that affect the same property.

When the animation ends it remains alive. The object describing the animation still exists so that the modifier can provide the property value when requested. When you use the Kanzi Engine API to apply multiple animations to an object you have to remove them, otherwise they keep consuming resources. Other systems, like the state manager and the Animation Player, keep track of animations themselves, so that you do not need to.

The workflow of animating an object

To animate an object:

  1. Create an animation:
  2. Create a timeline.
  3. Assign the animation to the timeline.
  4. Play back the animation.

See also

Creating animations and timelines using the Kanzi Engine API

Animations

Animations best practices

Kanzi fundamentals